package com.yl.qunai_kotlin

import androidx.lifecycle.lifecycleScope
import com.yl.common.base.BaseActivity
import com.yl.common.util.startActivity
import com.yl.qunai_kotlin.databinding.ActivitySplashBinding
import kotlinx.coroutines.delay

class SplashActivity : BaseActivity<ActivitySplashBinding>() {

    override fun getLayoutID(): Int = R.layout.activity_splash

    override fun init() {
        mBind.context = this
        lifecycleScope.launchWhenCreated {
            delay(1000)
            startActivity<MainActivity>()
            finish()
        }
    }
}